<?php
$editor    =& JFactory::getEditor();
$uri = & JFactory::getURI();
$site = str_replace("administrator/", "", $uri -> base(false));
?>

<table>

    <tr>

        <td>Nome:</td><td><input size="100" type="text" name="name" value=""></td>

    </tr>

    <tr>

        <td>Cognome:</td><td><input size="100" type="text" name="surname" value=""></td>

    </tr>

    <tr>

        <td>Luogo di Nascita:</td><td><input size="100" type="text" name="placeofborn" value=""></td>

    </tr>

    <tr>

        <td>Data di nascita:</td><td><input size="100" type="text" name="dateofborn" value=""></td>

    </tr>

    <tr>

        <td>Nome Genitore:</td><td><input size="100" type="text" name="parentname" value=""></td>

    </tr>

    <tr>

        <td>Cognome Genitore:</td><td><input size="100" type="text" name="parentsurname" value=""></td>

    </tr>

    <tr>

        <td>Luogo di Nascita Genitore:</td><td><input size="100" type="text" name="parentplaceofborn" value=""></td>

    </tr>

    <tr>

        <td>Data di nascita Genitore:</td><td><input size="100" type="text" name="parentdateofborn" value=""></td>

    </tr>

    <tr>

        <td>Email:</td><td><input size="100" type="text" name="email" value=""></td>

    </tr>

    <tr>

        <td>Telefono:</td><td><input size="100" type="text" name="phone" value=""></td>

    </tr>

    <tr>

        <td>Indirizzo:</td><td><input size="100" type="text" name="address" value=""></td>

    </tr>
    
    <tr>

        <td>Cap:</td><td><input size="100" type="text" name="zip" value=""></td>

    </tr>
    
    <tr>

        <td>Città:</td><td><input size="100" type="text" name="city" value=""></td>

    </tr>
       
    <tr>

        <td>Socio Presentatore:</td><td><input size="100" type="text" name="inviteby" value=""></td>

    </tr>

    <tr>

        <td>tipo:</td><td>

        <select name="type">

        <option value="A">Amico</option>

        <option value="S">Sostenitore</option>

        </select>

        </td>

    </tr>

    <tr>

        <td>confermato:</td><td>

        <select name="confirmed">

        <option value="0">No</option>

        <option value="1">Sì</option>

        </select>

        </td>

    </tr>

	<?php
	if(!$row -> confirmed) {
	?>
    <tr>

        <td>rinvia conferma:</td>
        <td>per inoltrare ancora la richiesta di conferma a questo utente <a href="<?php echo $site; ?>index.php?option=com_chronocontact&amp;Itemid=96&amp;chronoformname=reinvia_conferma&amp;rid=<?php echo $row -> rid;?>" target="_blank">clicca qui</a></td>

    </tr>
   	<?php
	}
	?>
    
    <tr>

        <td>accettato:</td><td>

        <select name="notified">

        <option value="0">No</option>

        <option value="1">Sì</option>

        </select>

        </td>

    </tr>

    <tr>

        <td>accetta adesione:</td>
        <td>per accettare la richiesta di adesione <a href="<?php echo $site; ?>index.php?option=com_chronocontact&Itemid=94&username=<?php echo $row -> username;?>" target="_blank">clicca qui</a></td>

    </tr>

</table>
<input type="hidden" name="usename" value="">
<input type="hidden" name="id" value="">